package cn.huiyunche.base.service.form;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @FileName: cn.huiyunche.driver.service.form
 * @Description: 车型油箱容积表单
 * Created by Administrator on 2017/4/28 0028.
 */
public class ScBaseCvTankvolumeForm {

        private Integer id;

        //车型类型主键
        @NotNull(message = "请选择车型")
        @Min(value = 1, message = "车型主键必须大于0")
        private Integer cvTypeId;

        private Integer cvClassId;
        //车型品牌主键
        @NotNull(message = "请选择车型品牌")
        @Min(value = 1, message = "车型品牌主键必须大于0")
        private Integer cvBrandId;

        //车型油箱容积
        private BigDecimal tankVolume;

        private Date gmtCreate;

        private Date gmtUpdate;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public Integer getCvTypeId() {
            return cvTypeId;
        }

        public void setCvTypeId(Integer cvTypeId) {
            this.cvTypeId = cvTypeId;
        }

        public Integer getCvClassId() {
            return cvClassId;
        }

        public void setCvClassId(Integer cvClassId) {
            this.cvClassId = cvClassId;
        }

        public Integer getCvBrandId() {
            return cvBrandId;
        }

        public void setCvBrandId(Integer cvBrandId) {
            this.cvBrandId = cvBrandId;
        }

        public BigDecimal getTankVolume() {
            return tankVolume;
        }

        public void setTankVolume(BigDecimal tankVolume) {
            this.tankVolume = tankVolume;
        }

        public Date getGmtCreate() {
            return gmtCreate;
        }

        public void setGmtCreate(Date gmtCreate) {
            this.gmtCreate = gmtCreate;
        }

        public Date getGmtUpdate() {
            return gmtUpdate;
        }

        public void setGmtUpdate(Date gmtUpdate) {
            this.gmtUpdate = gmtUpdate;
        }

        @Override
        public String toString() {
            return "ScBaseCvForm{" +
                    "id=" + id +
                    ", cvTypeId=" + cvTypeId +
                    ", cvClassId=" + cvClassId +
                    ", cvBrandId=" + cvBrandId +
                    ", tankVolume=" + tankVolume +
                    ", gmtCreate=" + gmtCreate +
                    ", gmtUpdate=" + gmtUpdate +
                    '}';
        }
}


